package com.dream.keigezhushou.Activity.acty.personal;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.Gravity;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.TextView;
import android.widget.Toast;

import com.dream.keigezhushou.R;

import butterknife.BindView;
import butterknife.ButterKnife;

public class FeedBackActivity extends AppCompatActivity {

    @BindView(R.id.iv_return)
    ImageView ivReturn;
    @BindView(R.id.tv_title)
    TextView tvTitle;
    @BindView(R.id.edit_feed)
    EditText editFeed;
    @BindView(R.id.tv_word_num)
    TextView tvWordNum;
    @BindView(R.id.btn_commit)
    Button btnCommit;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_feed_back);
        ButterKnife.bind(this);

        initView();
        initData();
    }

    //初始化界面
    protected void initView(){

        tvTitle.setText("意见反馈");
    }

    //初始化数据
    protected void initData(){

        ivReturn.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {

                //返回
                finish();
            }
        });


        btnCommit.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {

//                Toast toast = new Toast(getApplicationContext());
//                toast.setText("提交成功");
//                toast.setGravity(Gravity.CENTER,0,0);
//                toast.setDuration(Toast.LENGTH_SHORT);
//                toast.show();
                Toast.makeText(getApplicationContext(),"提交成功",Toast.LENGTH_SHORT).show();

                finish();
            }
        });
    }
}
